package com.terracloud.server.common.data;

import com.terracloud.server.common.data.tree.TreeNode;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 *
 * @author chenhainan
 * @since 2025/10/17
 */
@Data
public class Menu implements TreeNode<Menu,UUID> {

    private UUID id;

    private UUID pid;

    private String name;

    private String zhName;

    private List<Menu> children = new ArrayList<>();

    @Override
    public UUID getPId() {
        return pid;
    }

    @Override
    public List<Menu> getChildren() {
        return children;
    }
}
